# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Florian Walch <florian+aur@fwalch.com>

pkgname=libvterm
pkgver=0.3.3
pkgrel=1
pkgdesc='Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator'
arch=('loong64' 'x86_64')
url='https://www.leonerd.org.uk/code/libvterm/'
license=('MIT')
depends=('glibc')
makedepends=('git')
source=("https://launchpad.net/libvterm/trunk/v0.3/+download/libvterm-0.3.3.tar.gz")
sha256sums=('09156f43dd2128bd347cbeebe50d9a571d32c64e0cf18d211197946aff7226e0')

build() {
  cd "${pkgname}-${pkgver}"
  make PREFIX=/usr
}

package() {
  cd "${pkgname}-${pkgver}"
  make PREFIX=/usr DESTDIR="${pkgdir}" install
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set sw=2 sts=2 et:
